package com.ipartek.pruebas.bbdd;
import com.ipartek.pruebas.excepciones.ConnectionFactoryException;

/**
 * 
 */

/**
 * @author practicas9
 *
 */

/**
 * @param args
 */
public abstract class ConnectionFactoryP9 {

	public static final int ODBC = 1;
	public static final int TXTFILE = 2;

	public abstract CursoDaoP9 getCursoDao();

	public static ConnectionFactory getConnectionFactory(int tipo)
			throws ConnectionFactoryException {

		switch (tipo) {
		case ODBC:
			return new AlumnoODBCDAO();
		case TXTFILE:
			// return new AlumnoTXTDAO();
		}
		return null;

	}

}
